ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.Viewer.Common.Implementation Namespace / CachedMap<TSource,TValue> Class / CachedMap<TSource,TValue> Constructor
Cache capacity
Function to get specific item for collection

In This Topic
    CachedMap<TSource,TValue> Constructor
    In This Topic
    Ctor
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal capacity As Long, _
       ByVal collection As TSource, _
       ByVal mapItem As Func(Of Integer,TValue), _
       ByVal releaseItem As Action(Of Integer,TValue) _
    )
    public CachedMap<TSource,TValue>( 
       long capacity,
       TSource collection,
       Func<int,TValue> mapItem,
       Action<int,TValue> releaseItem
    )

    Parameters

    capacity
    Cache capacity
    collection
    mapItem
    Function to get specific item for collection
    releaseItem
    See Also